package com.cssl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cssl.pojo.AttLeave;
import com.cssl.service.AttLeaveService;
import com.cssl.dao.AttLeaveMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 李泽浩
* @description 针对表【att_leave(请假表)】的数据库操作Service实现
* @createDate 2023-05-26 15:55:02
*/
@Service
public class AttLeaveServiceImpl extends ServiceImpl<AttLeaveMapper, AttLeave>
    implements AttLeaveService{

    @Resource
    private AttLeaveMapper mapper;

    @Override
    public IPage<AttLeave> select(IPage<AttLeave> page, QueryWrapper<AttLeave> ew) {
        return mapper.select(page, ew);
    }

    @Override
    public int updateStatus(int status, int id,String cause) {
        return mapper.updateStatus(status,id,cause);
    }
}




